package kernel.exception;

/**
 * Class contains the error messages definitions. 
 * @author Petr Hajek
 */
@SuppressWarnings("serial")
public class OSException extends Exception {
	/** Error reports **/
	public static String ERR_WRITING = "Error while writing in file.";
	public static String ERR_READING = "Error while reading from file.";
	public static String ERR_CREATING = "Error while creating a new file.";
	public static String ERR_NOT_DIR = "Parameter is not a directory!";
	public static String ERR_NOT_FILE = "Parameter is not a file!";
	public static String ERR_NOT_EXISTS = "File doesn't exist!";
	public static String ERR_EXISTS = "File already exists!";
	public static String ERR_ACCESS = "Access denied.";
	
	public static String ERR_DEL_DIR = "Cannot remove directory this way!";
	public static String ERR_UNKNOWN_COM = "Unknown command!";
	
	public static String ERR_MANY_ARGS = "Too many arguments used in the command!";
	public static String ERR_WRONG_ARGS = "Wrong format of the arguments!";
	public static String NO_ARGS = "Command needs more arguments!";
	public static String UNFOUND_PATH = "Cannot find given path.";
	
	/**
	 * Special exceptions.
	 * @param args		Error message.
	 */
	public OSException(String message) {
		super(message);
	}
}
